feat: add MiniMax Messages provider support#4354
Merged
Hmbown merged 1 commit intoJul 14, 2026
Merged
Conversation
Register MiniMax-M3 and MiniMax-M2.7 for the OpenAI-compatible and Messages routes. Add regional endpoint guidance, request tests, catalog limits, and tier-aware pricing.
|
Thanks @octo-patch for taking the time to contribute. This repository is observing a maintainer-managed PR intake gate in dry-run mode, so this pull request is staying open. This note helps maintainers prepare the allowlist before any enforcement is considered. Please read |
12 tasks
Hmbown
pushed a commit
that referenced
this pull request
Jul 14, 2026
Follow-up to #4354, which added MiniMax's Anthropic-dialect route as a manual Provider impl and moved the $0.30/$1.20 bundled pricing from MiniMax-M3 (now honestly unpriced) to MiniMax-M2.7. Three surfaces still pinned the old expectations and broke CI on main: - scripts/check-provider-registry.py only learns providers from the provider!() macro plus a hardcoded manual-impl list; add MinimaxAnthropic to that list. - provider_metadata_defaults_match_runtime_helpers now expects the AnthropicMessages wire format for MinimaxAnthropic. - bundled_database_is_nonempty_and_honest asserts the priced row on MiniMax-M2.7 and that MiniMax-M3's price stays honestly unknown. - model_picker_hint_uses_model_registry_metadata checks M3 for the honest 'price unknown' hint and M2.7 for the priced-row path. Verified with cargo fmt, the provider-registry gate, the full codewhale-config suite (370 passed), and the full codewhale-tui binary suite (6682 passed; the two remaining failures are the container's missing-Landlock parity test and the known run-in-temp-dir parallelism flake, which passes in isolation). Prepared with agent assistance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
cargo fmt --allcargo check -p codewhale-config -p codewhale-agent -p codewhale-tui -p codewhale-cli --all-targets --lockedcargo test -p codewhale-config --locked minimax -- --nocapturecargo test -p codewhale-config --locked bundled_asset -- --nocapturecargo test -p codewhale-agent --locked minimax -- --nocapturecargo test -p codewhale-tui --bin codewhale-tui --locked minimax -- --nocapturecargo test -p codewhale-cli --locked parses_auth_subcommand_matrix -- --nocapturenode web/scripts/check-facts.mjsChecklist